package com.gzist.blog_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.blog_system.domain.Article;
import com.gzist.blog_system.domain.Statistic;

import java.util.List;

/**
 *
 */
public interface StatisticService extends IService<Statistic> {

    /*
     * @description:
     *  新增文章对应的统计信息接口
     * @author: 黄泽建
     **/
    boolean add(Article article);

    Statistic selectOneByArticleId(Long articleId);

    boolean updateHits(Statistic statistic);

    boolean updateComments(Statistic statistic);

    boolean deleteStatistic(Long id);

    List<Statistic> getStatistic();

    Long getTotalVisit();

    Long getTotalComment();
}
